package com.ssy.lingxi.purchase.api.enums.bidding;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 采购竞价单查询类型枚举类
 * @author wrc
 * @date 2021/1/19
 */
public enum BiddingListEnum {

    PURCHASE_BIDDING_LIST(1, "采购竞价单查询"),
    ADD_PURCHASE_BIDDING_LIST(2, "待新增采购竞价单查询"),
    EXAMINE_PURCHASE_BIDDING_LIST1(3, "待审核采购竞价单查询(一级)"),
    EXAMINE_PURCHASE_BIDDING_LIST2(4, "待审核采购竞价单查询(二级)"),
    SUBMIT_PURCHASE_BIDDING_LIST(5, "待提交采购竞价单查询"),
    CONFIRM_QUOTED_PRICE_LIST(6, "待审核竞价报名查询"),
    PLATFORM_PURCHASE_BIDDING_LIST(7, "平台后台待审核竞价单"),
    PLATFORM_PURCHASE_BIDDING_QUERY(8, "平台后台竞价竞价单查询"),
    STAY_BIDDING(9, "待竞价"),
    STAY_SUBMIT_EXAMINE_BIDDING_RETURN(10, "待提交审核竞价结果"),
    STAY_SUBMIT_EXAMINE_BIDDING_RETURN1(11, "待提交审核竞价结果(一级)"),
    STAY_SUBMIT_EXAMINE_BIDDING_RETURN2(12, "待提交审核竞价结果(二级)"),
    STAY_COMMIT_BIDDING_RETURN(13, "待确认竞价结果"),
    ADD_SHOP_PURCHASE_BIDDING_LIST(14, "待新增商城采购竞价单查询"),

    ;

    private Integer type;
    private String name;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return LanguageHolder.getName(this.getClass(), this.type);
    }

    public void setName(String name) {
        this.name = name;
    }

    BiddingListEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }
}
